Skip to content

Conversation

@ZoomRmc
Copy link
Contributor

@ZoomRmc ZoomRmc commented Sep 21, 2025

Continuation of #25180. This one refactors the sequence routines.

Preparation for extending with new routines.

Mostly removes repeating code to simplify debugging.

Removes:

  • incrSeqV2 superseded by incrSeqV3,
  • setLengthSeq superseded by setLengthSeqV2

Note comment on line 338, acknowledging that implementation of setLenUninit from #25022 does zero the new memory in this branch, having been copied from setLengthSeqV2. This PR does not fix this.

Continuation of nim-lang#25180. This one refactors the sequence routines.

Preparation for extending with new routines.

Mostly removes repeating code to simplify debugging.

Removes:
 - `incrSeqV2` superseded by `incrSeqV3`,
 - `setLengthSeq` superseded by `setLengthSeqV2`

Note comment on line 338, acknowledging that implementation of
`setLenUninit` from nim-lang#25022 does zero the new memory in this branch,
having been copied from `setLengthSeqV2`. This PR does not fix this.
@Araq Araq merged commit 01c0840 into nim-lang:devel Nov 15, 2025
18 checks passed
@github-actions
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from 01c0840

Hint: mm: orc; opt: speed; options: -d:release
189867 lines; 8.614s; 820.109MiB peakmem

@arnetheduck
Copy link
Contributor

ping @narimiran backport pls

@narimiran
Copy link
Member

ping @narimiran backport pls

When trying to backport, there are merge conflicts due to the fact that the following PRs haven't been backported:

...which both have their own merge conflicts.

Is the reward:risk ratio high enough?

@arnetheduck
Copy link
Contributor

...which both have their own merge conflicts.

yeah, all of them are high value (just for 2.2 - 2.0 not needed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants